package com.zw.a.basic.a13.demo09_join;

//自定义的线程类MyThread, 继承Thread
public class MyThread extends Thread {
    public MyThread() {
    }

    public MyThread(String name) {
        super(name);
    }

    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            System.out.println(getName() + " ... " + i);
        }
    }
}